{% extends '__base.tpl' %}
{% block head %}
<title>编程达人 {{data.title}}</title>
<meta name="keywords" content="编程达人,{{data.title}}" />
<meta name="description" content="{{data.content|toDescription}}"/>

<!-- build:css -->
<link rel="stylesheet" href="../../../public/css/other/wangEditor.css">
<link rel="stylesheet" href="../../../public/css/other/wangEditor-extend.css">
<link rel="stylesheet" type="text/css" href="../../../public/css/page/contentPage.css" />
<link rel="stylesheet" type="text/css" href="../../../public/css/page/popup.css" />
<!-- endbuild -->
{% endblock %}

{% block body %}
<div id='box' data-title="编程达人项目接单-{{data.title}}" data-id="{{data.id}}" data-comment_type="4"
     data-description="编程达人项目接单-{{data.title}}" data-recv_memberid="{{data.recvMemberId}}" data-uptype="project">

    <div id='content' data-memberid="{{data.sendMemberId}}">
        {%if data%}
        <div class="contHead clearfix relative" >
           <span class="fleft iblock answer-title" >
               <span class="font24">{{data.title|safe}}</span>
               {%if data.price >0 %}
                  <span class="font13 red">
                      已付{%if data.priceType==1%}全款{%endif%}{%if data.priceType==2%}定金{%endif%}{{data.price}}元
                  </span>
               {%endif%}
           </span>
           <span class="fright btnStyleBlue middle-right" style="margin: 0">项目接单</span>
        </div>
        <div class="contBody">
            <ul class="darenList">
                <li class="darenList-item clearfix">
                    <div class="head-img-box">
                        <a target="_blank" href="/{{data.sendMemberId}}/userInfo.html">
                            <img class="fleft head-img" src="{{data.sendHeader|imgPath}}" />
                        </a>
                    </div>
                    <div class="fleft">
                        <h5 class="font16 clo3">
                            <a target="_blank"  href="/{{data.sendMemberId}}/userInfo.html">
                                {{data.sendNickName}}
                                {% if data.sendMemberType==='V' %}
                                <img src="../../../public/images/daren1.jpg" class="iconLV1" />
                                {% elif data.sendMemberType==='D' %}
                                <img src="../../../public/images/daren2.jpg" class="iconLV" />
                                {% endif  %}
                                <span class="clo9 ml10">等级 {{data.sendMemberType}}{{(data.sendGradeValue/100)|int }}</span>
                            </a>
                            <span  class="hide" data-memberid="{{data.sendMemberId}}" id="memberNotice">
                                <button class="btnStyleS ml20 hide"
                                        onclick="BASE.COMMON.noticeToMember(this)"
                                        data-memberid="{{data.sendMemberId}}">+ 关注</button>
                                <button class="btnStyleC ml20 hide"
                                        onclick="BASE.COMMON.cancelNotice(this)"
                                        data-memberid="{{data.sendMemberId}}">已关注</button>
                            </span>
                             <span id="memberModify" {%if data.status>3%} class="hide" {%endif%} style="display:none">
                                <button  data-content="{{data.content}}"
                                         data-title="{{data.title|safe}}"
                                         data-price="{{data.price}}"
                                         data-file_url="{{data.fileUrl}}"
                                         data-price_type="{{data.priceType}}"
                                         onclick="BASE.PROJECTCONTENT.modifyPopupShow(this)"
                                         class="btnBlueM ml30"> 修改</button>
                            </span>
                        </h5>
                        <div class="clo9 font12">{{data.createDateTime|dateFormat}}</div>
                        <div class="ptb20 clo3 editor-content w-e-text"> {{data.content|safe}}</div>
                    </div>
                </li>
            </ul>
        </div>

        {%else%}
        <div class="pd20 center font18">
            数据审核中...
        </div>
        {%endif%}
    </div><!-- end content-->
    <div class="lmessage">
        <div class="commentTag" style="overflow: visible">
            <ul class="clearfix">
                <li>浏览 <em>{{data.clickCount}}</em></li>
                <li>分享 <em>{{data.shareCount}}</em></li>
                {%if data.status|projectStatus%}
                <li>
                    <button class="btn red-border-btn">{{data.status|projectStatus}}</button>
                </li>
                {%endif%}
                <li id="projectModify" class="hide">
                    {%if data.status < 5%}
                    <button class="btnBlueM ml10" onclick="BASE.PROJECTCONTENT.cancelProject(this)">撤单</button>
                    {%endif%}
                    {%if data.status == 4%}
                    <button class="btnBlueM ml10" data-memberid="{{data.recvMemberId}}"
                            onclick="BASE.PROJECTCONTENT.doneProject(this)">交易结束</button>
                    <span class="font13 clo6 ml5">
                        <span class="blue">友情提示：</span>该笔交易免手续费
                    </span>
                    {%endif%}
                </li>
                <li class="social-share ml20"  data-initialized="true">分享：
                    {%include '__share1.html'%}
                </li>
               <li class="middle-right">
                   <div class="tright">
                       <a class="blue u" target="_blank" href="/project_rule.html">交易说明？</a>
                       {%if data.fileUrl%}
                       <a class="btnBlueM" target="_blank"  href="{{data.fileUrl|imgPath}}">下载需求文档</a>
                       {%endif%}
                   </div>
               </li>
            </ul>
        </div>
        <div class="lmessageB">
            <span class="lmText">跟帖接单
                {% if data.commentCount>0 %}
                ({{data.commentCount}})
                {% endif %}
            </span>
        </div>
        <div class="lmessageC relative" id="comment">
            {% include '__comment_reply_list_textarea_project.html' %}
            {% include '__comment_reply_list_script.html' %}
            {% include '__page.html' %}
        </div>
    </div>
    <div class="fixed-icon">
        <a href="javascript:;"class="fixed-icon-item"  onclick="BASE.COMMON.scrollTop($('#content').height())">
            <img width="25px" src="../../../public/images/talk.png" alt="talk">
            {%if data.commentCount>0%}
            {{data.commentCount}}
            {%endif%}
        </a>
        <a href="javascript:;" class="fixed-icon-item" onclick="BASE.COMMON.scrollTop(1)">
            <img width="25px"  src="../../../public/images/backhome.png" alt="top">
        </a>
    </div>
</div>
{% endblock %}

{% block footer %}
{{ super() }}
<div id="modify">
    {% include '__popup_project.html' %}
</div>
{% endblock %}

{% block script %}
{{ super() }}
<!-- build:js -->
<script src="../../../public/js/page/plugin/wangEditor.js"></script>
<script src="../../../public/js/page/plugin/wangEditor-extentd.js"></script>
<script src="../../../public/js/page/plugin/nativepage.js"></script>
<script src='../../../public/js/page/common/uploadAnswer.js'></script>
<script src='../../../public/js/page/project/project_common.js'></script>
<script src='../../../public/js/page/project/project_content.js'></script>
<!-- endbuild -->
{% endblock %}